import Base from '../../base.js';
import usersModel from '../../../model/users'
export default class extends Base {
    /**
   * 获取用户列表
   */
  async indexAction() {
    const usersDb = think.model('users') as usersModel;
    try{
      const data = await usersDb.getList()
      return this.json(this.dataJsonSuccess(data))
    }catch (error) {
      return this.json(this.dataJsonError(500, null))
    }
  }
}
